﻿namespace BindingSource;

public partial class MainPage : ContentPage {
    public MainPage() {
        InitializeComponent();

        MyListView.ItemsSource = new List<Contact> {
            new() { Name = "Name 1", PhoneNumber = "Phone Number 1" },
            new() { Name = "Name 2", PhoneNumber = "Phone Number 2" },
            new() { Name = "Name 3", PhoneNumber = "Phone Number 3" },
        };
    }
}

public class Contact {
    public string Name { get; set; }

    public string PhoneNumber { get; set; }
}